package demo1;

public class Text {
    public static void main(String[] args) {
        MyTree myTree = new MyTree();
        MyTree.TreeNode root = myTree.createBinaryTree();
       /* System.out.println("前序");
        myTree.preOrder(root);
        System.out.println();
        System.out.println("后序");
        myTree.postOrder(root);
        System.out.println();
        System.out.println("中序");
        myTree.inOrder(root);
        System.out.println();
        System.out.println(myTree.size(root));
        System.out.println(myTree.getLeafNodeCount(root));
        System.out.println(myTree.getKLevelNodeCount(root, 5));
        System.out.println(myTree.getHeight(root));
        System.out.println(myTree.find(root, 'H'));
        myTree.levelOrder(root);*/
        System.out.println(myTree.isCompleteTree(root));
    }
}
